<?php
namespace My\Controller;
use Utuo\BackgroundController;
class MicroVoteCommentController extends BackgroundController
{
	public function _initialize() {
		$this->setControllerTitle("评论管理");
		$this->setActionTitle(array(
				'index' => '评论列表',
			    'recycle' => '回收站'
		));
		$this->setActionNav(array(
				'index',
			
				'recycle'
		));
	}
	public function getLists($is_deleted){
		$condation=array(
				'cid'=>$this->aid,
				'status'=>1,
				'is_deleted'=>$is_deleted
		);
		$adPosition=M('AdPosition')->where($condation)->select();
		$count=D('AdPosition')->where($condation)->count();
		$this->showPage($count, $this->getPageSize());
	
		$this->assign('adPosition',$adPosition)->display();
	}
}